package com.szqhyxj.youxiangju.biz.realNameAuth.idcard;

import android.text.TextUtils;

import java.io.File;
import java.io.PipedReader;

public class IDCardEntity {
    private File face;

    private File back;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    private String username;

    private String idCard;

    private String certStateDate;

    private String certExpireDate;

    private String faceUrl;

    private String backUrl;

    public boolean valid () {

        return !TextUtils.isEmpty(this.username)
                &&!TextUtils.isEmpty(this.idCard)
                && !TextUtils.isEmpty(this.certStateDate)
                && !TextUtils.isEmpty(this.certExpireDate)
                && !TextUtils.isEmpty(this.faceUrl)
                && !TextUtils.isEmpty(this.backUrl);

    }

    File getFace() {
        return face;
    }

    void setFace(File face) {
        this.face = face;
    }

    public File getBack() {
        return back;
    }

    public void setBack(File back) {
        this.back = back;
    }


    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCertStateDate() {
        return certStateDate;
    }

    public void setCertStateDate(String certStateDate) {
        this.certStateDate = certStateDate;
    }

    public String getCertExpireDate() {
        return certExpireDate;
    }

    public void setCertExpireDate(String certExpireDate) {
        this.certExpireDate = certExpireDate;
    }

    public String getFaceUrl() {
        return faceUrl;
    }

    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }

    public String getBackUrl() {
        return backUrl;
    }

    public void setBackUrl(String backUrl) {
        this.backUrl = backUrl;
    }

}
